package pub.tbc.api.service.loadbalance;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 负载均衡工具
 *
 * @author tbc on 2017/3/18.
 */
public interface LoadBalance {
    String random(Set<String> serviceAddress);

    String random(List<Map<String, Integer>> serviceAddress);

    String polling(Set<String> serviceAddress);

    String polling(List<Map<String, Integer>> serviceAddress);


}
